import request from '@/utils/request'
import { faceApiUrl } from '../config'

/*技术管理问题清单*/

/**
 * 左边树列表
 * @param data
 */
export function queryTreeListBySearch(data){
  return request({
    url: `${faceApiUrl}/technicalProblemMenu/queryTreeListBySearch`,
    method: 'post',
    data
  })
} 

/**
 * 左边树添加
 * @param data
 */
export function addProblemListTree(data) {
  return request.post(`${faceApiUrl}/technicalProblemMenu/insertSelective`,data)
}
/**
 * 左边树删除
 * @param data
 */
export function deleteProblemListTree(data) {
  return request.post(`${faceApiUrl}/technicalProblemMenu/deleteByPrimaryKey?id=${data.id}`,data)
}

/**
 * 左边树树编辑
 * @param data
 */
export function editProblemListTree(data) {
  return request.post(`${faceApiUrl}/technicalProblemMenu/updateByPrimaryKeySelective`,data)
}

/**
 * 列表新增
 * @param data
 */
export function addProblemListTwo(data) {
  return request.post(`${faceApiUrl}//technicalProblem/insertSelective`,data)
}

/**
 * 列表
 * @param data
 */
export function getProblemListTwo(data) {
  return request.post(`${faceApiUrl}/technicalProblem/queryPageBYSearch`,data)
}

/**
 * 列表编辑
 * @param data
 */
export function editProblemListTwo(data) {
  return request.post(`${faceApiUrl}/technicalProblem/updateByPrimaryKeySelective`,data)
}

/**
 * 列表启用停用
 * @param data
 */
export function setStatusByPrimaryKeyProblemListTwo(data) {
  return request.post(`${faceApiUrl}/technicalProblem/setStatusByPrimaryKey`,data)
}
/**
 * 列表查看
 * @param data
 */
export function getProblemListTwoDetail(data) {
  return request.post(`${faceApiUrl}/technicalProblem/selectByPrimaryKey/${data.id}`,data)
}